<!--Copyright (C) Kherty.  All rights reserved.-->
<ResourceDictionary 
    x:Class="OpenLS.Chart.UI.LineSeriesPropertiesResources" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:drawing="http://schemas.Kherty.com/office/2007/drawing"
    xmlns:drawing2="clr-namespace:OpenLS.Drawing.UI;assembly=OpenLS.Drawing.UI"
    xmlns:chartui="clr-namespace:OpenLS.Chart.UI"
    xmlns:chart="http://schemas.Kherty.com/office/2007/chart"
    xmlns:Internals="clr-namespace:OpenLS.Chart.UI.Internals">
    <ResourceDictionary.MergedDictionaries>
        <drawing:ColorResources/>
        <drawing:FillResources/>
        <drawing:LineResources/>
        <chartui:View3DResources/>
        <chartui:MarkerPropertiesResources />
    </ResourceDictionary.MergedDictionaries>
    <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
    <DataTemplate DataType="{x:Type chart:LineSeries}">
        <TabControl TabStripPlacement ="Left" chartui:ChartElement.ViewModel="{Binding Converter={x:Static Internals:ChartConverters.ViewModelFactory}}">
            <TabItem Header="{x:Static Internals:UIStringTable.SeriesOptions}">
                
            </TabItem>
            <TabItem Header="{x:Static Internals:UIStringTable.MarkerOptions}">
                <GroupBox>
                    <ContentControl Content="{Binding Converter={x:Static Internals:ChartConverters.MarkerAccessor}}"/>
                </GroupBox>
            </TabItem>
            <TabItem Header="{x:Static Internals:UIStringTable.MarkerFill}" 
                     DataContext="{Binding Converter={x:Static Internals:ChartConverters.MarkerAccessor}}">
                <GroupBox DataContext="{Binding Converter={x:Static Internals:ChartConverters.ViewModelFactory}}">
                    <ContentControl Content="{Binding FillFormatter}" />
                </GroupBox>
            </TabItem>
            <TabItem Header="{x:Static Internals:UIStringTable.LineColor}">
                    <GroupBox>
                    <ContentControl Content="{Binding Path=(chartui:ChartElement.ViewModel).LineFillFormatter, RelativeSource={RelativeSource Self}}" />

                    
                    </GroupBox>
            </TabItem>
            <TabItem Header="{x:Static Internals:UIStringTable.LineStyle}">
                <GroupBox>
                    <StackPanel>
                        <ContentControl Content="{Binding Path=(chartui:ChartElement.ViewModel).LineStyleFormatter, RelativeSource={RelativeSource Self}}" />
                        <CheckBox Content="{x:Static Internals:UIStringTable.SmoothedLine}" IsChecked="{Binding IsSmooth}"/>

                    </StackPanel>
                </GroupBox>
            </TabItem>
            <TabItem Header="{x:Static Internals:UIStringTable.MarkerLineColor}" DataContext="{Binding Converter={x:Static Internals:ChartConverters.MarkerAccessor}}">
                <GroupBox DataContext="{Binding Converter={x:Static Internals:ChartConverters.ViewModelFactory}}">
                    <ContentControl Content="{Binding LineFillFormatter}" />
                </GroupBox>
            </TabItem>
            <TabItem Header="{x:Static Internals:UIStringTable.MarkerLineStyle}" DataContext="{Binding Converter={x:Static Internals:ChartConverters.MarkerAccessor}}">
                <GroupBox DataContext="{Binding Converter={x:Static Internals:ChartConverters.ViewModelFactory}}">
                    <ContentControl Content="{Binding LineStyleFormatter}" />
                </GroupBox>
            </TabItem>
            <TabItem Header="{x:Static Internals:UIStringTable.Shadow}"/>
            <TabItem Header="{x:Static Internals:UIStringTable.Format3D}">
                <ContentControl Content="{Binding Path=(chartui:ChartElement.ChartArea).View3D, RelativeSource={RelativeSource Self}}"/>
            </TabItem>
        </TabControl>

    </DataTemplate >


</ResourceDictionary>